//
//  LocationViewController.m
//  AISUPnPFinder
//
//  Created by Ares on 1/28/15.
//  Copyright (c) 2015 Ares. All rights reserved.
//

#import "LocationViewController.h"
#import <AISUPnP/AISUPnP.h>

@interface LocationViewController ()

@end

@implementation LocationViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    if (nil == self.detailItem)
    {
        return;
    }
    
    AISUPnPDevice *device = (AISUPnPDevice *)(self.detailItem);
    [self.textView setText:[[NSString alloc] initWithData:device.rawDescriptionData encoding:NSUTF8StringEncoding]];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
